/*
 * block.h
 *
 *  Created on: 28 Dec 2012
 *      Author: adan
 */

#ifndef BLOCK_H_
#define BLOCK_H_

#include "sys.h"

struct Block {
	Colour colour;
	int x, y;
	bool destroyed;
	Drawable draw;
	SDL_Rect* rectBottom;
	SDL_Rect* rectTop;
	SDL_Rect* rectLeft;
	SDL_Rect* rectRight;
};
typedef struct Block Block;

extern Block* createBlock(int x, int y, Colour colour);

static const int BLOCK_WIDTH = 16;
static const int BLOCK_HEIGHT = 6;

#endif /* BLOCK_H_ */
